package com.sjf.batch.demo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * @author <huangtang>
 * @since 2022/1/6 9:11
 **/
@Data
@Builder
@AllArgsConstructor
@TableName("user")
public class User {

    //public static void main(String[] args) {
    //    User user = new UserBuilder()
    //            .id(1)
    //            .name("sunJianfeng")
    //            .age(21)
    //            .sex("男").build();
    //    System.out.println(user);
    //}

    @TableId
    private int id;
    @TableField
    private String name;
    //@TableField(value = "password")
    //private String pwd;
    //@TableField(value = "`e-mail`")
    //private String email;
    @TableField
    private int age;
    @TableField
    private String sex;

}
